package cn.elricyu.tt.bean.train;

import cn.elricyu.tt.bean.CompareValue;

public class Trainer implements CompareValue {
	private int trainerid;
	private String name;
	private int whnum;
	private int basictimes;
	private int times;
	private int lvlimit;
	private String effectintro;
	private String pic;

	public int getTrainerid() {
		return trainerid;
	}

	public void setTrainerid(int trainerid) {
		this.trainerid = trainerid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getWhnum() {
		return whnum;
	}

	public void setWhnum(int whnum) {
		this.whnum = whnum;
	}

	public int getBasictimes() {
		return basictimes;
	}

	public void setBasictimes(int basictimes) {
		this.basictimes = basictimes;
	}

	public int getTimes() {
		return times;
	}

	public void setTimes(int times) {
		this.times = times;
	}

	public int getLvlimit() {
		return lvlimit;
	}

	public void setLvlimit(int lvlimit) {
		this.lvlimit = lvlimit;
	}

	public String getEffectintro() {
		return effectintro;
	}

	public void setEffectintro(String effectintro) {
		this.effectintro = effectintro;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	@Override
	public Object getValue(int type) {
		switch (type) {
		case 1:
			return trainerid;
		case 2:
			return name;
		case 3:
			return lvlimit;
		case 4:
			return whnum;
		case 5:
			return effectintro;
		default:
			break;
		}
		return lvlimit;
	}

	@Override
	public Object getValue() {
		return lvlimit;
	}

}
